package cn.detu.ln.service;

import cn.detu.ln.entity.Teacher;
import cn.detu.ln.utils.RestUtil;

/**
 * @author :ln
 * @version : 1.0
 * @Project : education
 * @Package : cn.tedu.ln.service
 * @ClassName : TeacherService.java
 * @createTime : 2023/3/24 17:44
 * @Description :
 */
public interface TeacherService {
    RestUtil selectAll();
    Teacher queryTeacherById(Integer teaId);
    RestUtil teacherDelete(Integer teaId);
    RestUtil teacherUpdate(Teacher teacher);
    RestUtil teacherInsert(Teacher teacher);
    RestUtil queryTeacherByPage(Integer current, Integer rows, String search);

    RestUtil selectOne(Integer teaId);
    // 按工号实现查询
    RestUtil queryTeacherByTeaIdPage(Integer current, Integer rows, String search);
    // 按职称实现查询
    RestUtil queryTeacherByTeaTitlePage(Integer current, Integer rows, String search);
    // 实现登陆
    RestUtil login(Teacher teacher);
    // 实现修改密码功能
    RestUtil teacherUpdatePwd(Teacher teacher,String newPwd);
    // 根据id查找
    RestUtil select(Integer teaId);
}
